using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(Rigidbody))]
public class RigibodyEditor : Editor
{
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        Rigidbody rb = (Rigidbody)target;
        GUILayout.Label("Velocity");
        GUILayout.Label(rb.velocity.x.ToString());
        GUILayout.Label(rb.velocity.y.ToString());
        GUILayout.Label(rb.velocity.z.ToString());
    }
}
